package day25.edu;
// Created: 25/09/2025, ChangJiang Ru
import org.junit.Test;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;

public class SingerTest {
    @Test
    public void test1()
    {
        HashMap singers = new HashMap();

        String singer1 = "JoBin";
        String singer2 = "DiLon";
        String singer3 = "TeiLe";

        ArrayList song1 = new ArrayList();
        song1.add("You are beautiful");
        song1.add("Laughter In The Rain");
        song1.add("Bressanone");
        song1.add("Promise Don't Come Easy");
        song1.add("Love Story");

        ArrayList song2 = new ArrayList();
        song2.add("You Are Not Alone");
        song2.add("You Raise Me Up");
        song2.add("As Long As You Love Me");
        song2.add("Yellow");

        ArrayList song3 = new ArrayList();
        song3.add("Burming");
        song3.add("Sailing");
        song3.add("Cry on my shoulder");

        singers.put(singer1, song1);
        singers.put(singer2, song2);
        singers.put(singer3, song3);

        Set entrySet = singers.entrySet();
        for (Object entry : entrySet)
        {
            Map.Entry entry1 = (Map.Entry)entry;
            System.out.println(entry1.getKey() + "---------->" + entry1.getValue());
        }


    }
}
